package com.sxj.corejava.code07_面向对象.封装;

/**
 * @author 石小俊
 * @date 2024年03月16日 11:10
 */
public class Test03 {

    public static void main(String[] args) {
        Poker poker = new Poker();
        Card[] cards = poker.getCards();
        for (int i = 0; i < cards.length; i++) {
            System.out.print(cards[i].getColor() + cards[i].getNum() + " ");
        }
        System.out.println("\n*********************开始洗牌*********************");
        poker.shuffle();
        cards = poker.getCards();
        for (int i = 0; i < cards.length; i++) {
            System.out.print(cards[i].getColor() + cards[i].getNum() + " ");
        }
    }

}
